package com.runmi.webchat.aftersale.config;


import com.runmi.webchat.aftersale.interceptor.AuthInterceptor;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

@Configuration
public class WebMvcConfg implements WebMvcConfigurer {

    public void addInterceptors(InterceptorRegistry registry){
       // registry.addInterceptor(new ExecTimeCostInterceptor()).addPathPatterns("/**");
        registry.addInterceptor(new AuthInterceptor()).addPathPatterns("/aftersale/**");
    }
}
